 package CurtainDesign;

 import com.sun.jimi.core.VMMControl;
 import java.awt.Dimension;
 import java.awt.Frame;
 import java.awt.Toolkit;
 import javax.swing.*;

 public class CurtainDesign
 {
   static MainView m_UserMainGUI;
   static OrderFile m_orderfile;
   static PipeIndexFile m_PipeIndexFile = new PipeIndexFile();
   static ResultInfo m_ResultInfo;

   static JTextField[] pos;
   static int count = 0;

   public CurtainDesign()
   {
     m_UserMainGUI = new MainView();

     Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
     Dimension frameSize = m_UserMainGUI.getSize();
     if (frameSize.height > screenSize.height) {
       frameSize.height = screenSize.height;
     }
     if (frameSize.width > screenSize.width) {
       frameSize.width = screenSize.width;
     }
	   m_UserMainGUI.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);

     m_UserMainGUI.setVisible(true);

     Login login = new Login(m_UserMainGUI);
     login.setLocation(screenSize.width / 3, screenSize.height / 3);
     login.show();
   }

   public static void main(String[] args)
   {
     try {
       UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
     }
     catch (Exception e)
     {
       e.printStackTrace();
     }

     Splash splash = new Splash("images/startpic.bmp", new Frame());
     VMMControl.setVMMThreshold(10485760);

     Constants.InitConfig();
     Constants.InitHinging(); //初始化合页安装方式
     Constants.InitByFoldHinging();
     new CurtainDesign();
     splash.setVisible(false);
     splash.dispose();
     splash = null;
   }
 }

/* Location:           C:\Users\Administrator\Desktop\奥特百叶窗\Shutter DesignerV3.1\CurtainDesign.jar
 * Qualified Name:     CurtainDesign.CurtainDesign
 * JD-Core Version:    0.6.0
 */